package com.yj.springbootmybatis.service;

import com.yj.springbootmybatis.mapper.InfoMapper;
import com.yj.springbootmybatis.pojo.Info;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class InfoServiceImpl implements InfoService {

    @Autowired
    InfoMapper infoMapper;

    @Transactional
    @Override
    public List<Info> findAll()
    {
        return infoMapper.selectAll();
    }
}
